# AWX Secret Configurations
---
apiVersion: v1
kind: Secret
metadata:
  name: '{{ ansible_operator_meta.name }}-app-credentials'
  namespace: '{{ ansible_operator_meta.namespace }}'
  labels:
    {{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
data:
  credentials.py: "{{ lookup('template', 'settings/credentials.py.j2') | b64encode }}"
  ldap.py: "{{ lookup('template', 'settings/ldap.py.j2') | b64encode }}"
  execution_environments.py: "{{ lookup('template', 'settings/execution_environments.py.j2') | b64encode }}"
